<div class="right">
	<div id="columns1">
		<ul id="column2" class="main">
			<li class="widget1 color-green1" id="widget13">
				<div class="widget1-head">
					<h3>
						当日对比统计分析
					</h3>
				</div>
				<div id="chartdiv" class="widget1-content" style="'height: 230px;" ></div>
			</li>
			<li class="widget1 color-green1" id="widget12">
				<div class="widget1-head">
					<h3>
						访问量概况
					</h3>
				</div>
				<div class="widget1-content">
					<table cellspacing="0" cellpadding="0">
						<tr>
							<th>
								综合概况
							</th>
							<th>
								PV
							</th>
							<th>
								独立访客
							</th>
							<th>
								IP
							</th>
							<th>
								新独立访客
							</th>
							<th>
								人均浏览次数
							</th>
						</tr>
						<?php foreach(@$today as $key=>$val):?>
						<tr>
							<td>
								今日
							</td>
							<td>
							<?=$val['total_arrives']?>
								
							</td>
							<td>
							<?=$val['total_vids']?>
								
							</td>
							<td>
							<?=$val['total_ips']?>
								
							</td>
							<td>
							<?=$val['total_isnew']?>
							</td>
							<td>
							<?=$val['avg_searchTimes']?>
							</td>
						</tr>
                        <?php endforeach;?>
						<?php foreach(@$yestoday as $key=>$val2):?>
						<tr>
							<td>
								昨日
							</td>
							<td>
							<?=$val2['total_arrives']?>
							</td>
							<td>
							<?=$val2['total_vids']?>
							</td>
							<td>
							<?=$val2['total_ips']?>
							</td>
							<td>
							<?=$val2['total_isnew']?>
							</td>
							<td>
							<?=$val2['avg_searchTimes']?>
							</td>
						</tr>
                        <?php endforeach;?>
                    
						<tr>
							<td>
								历史总访问量
							</td>
							<td>
							<?=$total['total_arrives']?>
							</td>
							<td>
							<?=$total['total_vids']?>
							</td>
							<td>
							<?=$total['total_ips']?>
							</td>
							<td>
							<?=$total['total_isnew']?>
							</td>
							<td>
							<?=$total['avg_searchTimes']?>
							</td>
						</tr>
                       
					</table>
				</div>
			</li>
			
			<li class="widget1 color-green1" id="widget12">
				<div class="widget1-head">
					<h3>
						今日来访域名和受访页面分析					</h3>
			  </div>
				<div class="widget1-content">
					<div class="contentleft">
						<table>
							<tr>
								<td>
									<h3>
										来路域名URL (<a href="<?=$this->config->item("site_url");?>OriginAnalysis/showbydomain" target="_blank"><font color="#0000CC">查看全部</font></a>)
									</h3>
								</td>
								<td>
									<h3>
										来访次数
									</h3>
								</td>
							</tr>
							<?php foreach(@$top_url['refer_domain'] as $key=>$val):?>
									<tr>
										<td>
											<?=$key?>
										</td>
                                        <td>
											<?=$val?>
										</td>
									</tr>
								<?php endforeach;?>
						</table>
					</div>
					<div class="contentright">
						<table>
							<tr>
								<td>
									<h3>
										受访页面地址  (<a href="<?=$this->config->item("site_url");?>RespAnalysis/showbyRespPage" target="_blank"><font color="#0000CC">查看全部</font></a>)
									</h3>
								</td>
								<td>
									<h3>
										访客数
									</h3>
								</td>
							</tr>
							<?php foreach(@$top_url['arriverefer'] as $key=>$val):?>
									<tr>
										<td>
											<a href="<?=$key?>" target="_blank"><?=$key?></a>
										</td>
                                        <td>
											<?=$val?>
										</td>
									</tr>
								<?php endforeach;?>
						</table>
					</div>
				</div>
			</li>
			<li class="widget1 color-green1" id="widget13">
				<div class="widget1-head">
					<h3>
						今日关键字地区分布对比分析
					</h3>
				</div>
				<div id="chartarea" class="widget1-content" style="'height: 350px; width:852px;" ></div>
			</li>
		</ul>
	</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="<?=$this->config->item('chart_url');?>JSClass/FusionCharts.js"></script>
  <script type="text/javascript">
  $(document).ready(function(){
   var chart = new FusionCharts("<?=$this->config->item('chart_url');?>Charts/MSLine.swf", "ChartId", "852", "350", "0", "0");
   chart.setDataXML('<?=$xml?>');
   chart.render("chartdiv");
   
   var chart_area = new FusionCharts("<?=$this->config->item('chart_url');?>Charts/Doughnut2D.swf", "ChartId", "852", "350", "0", "0");
   chart_area.setDataXML("<?=$top_area?>");
   chart_area.render("chartarea");
   
});
</script>
